package com.xhs.main.service.rsb.impl;

import com.xhs.main.dao.rsb.RsbApplyDao;
import com.xhs.main.entity.rsb.RsbApply;
import com.xhs.main.service.rsb.RsbApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2020-10-24-17:31
 */
@Service
public class RsbApplyServiceImpl implements RsbApplyService {

    @Autowired
    RsbApplyDao rsbApplyDao;

    @Override
    public void insertApply(RsbApply rsbApply) {
        rsbApplyDao.insertApply(rsbApply);
    }

    @Override
    public void deleteApply(String rsbApNum) {
        rsbApplyDao.deleteApply(rsbApNum);
    }

    @Override
    public void updateApply(String rsbApNum,String rsbApTime) {
        rsbApplyDao.updateApply(rsbApNum,rsbApTime);
    }

    @Override
    public void updateApply2(String rsbApNum,String rsbApTime) {
        rsbApplyDao.updateApply2(rsbApNum,rsbApTime);
    }

    @Override
    public List<RsbApply> selectByUserName(String userName) {
        List<RsbApply> rsbApplies = rsbApplyDao.selectByUserName(userName);
        return rsbApplies;
    }

    @Override
    public RsbApply selectByRsbApNum(String rsbApNum) {
        RsbApply rsbApply = rsbApplyDao.selectByRsbApNum(rsbApNum);
        return rsbApply;
    }

    @Override
    public List<RsbApply> selectByRsbApPeople(String rsbApPeople) {
        List<RsbApply> rsbApplies = rsbApplyDao.selectByRsbApPeople(rsbApPeople);
        return rsbApplies;
    }

    @Override
    public List<RsbApply> selectAllApply() {
        List<RsbApply> rsbApplies = rsbApplyDao.selectAllApply();
        return rsbApplies;
    }

    @Override
    public List<RsbApply> selectNotIn(String userName) {
        List<RsbApply> rsbApplies = rsbApplyDao.selectNotIn(userName);
        return rsbApplies;
    }


}
